package cn.mldn.homework.mvcOutputHelloWord.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigReader
{
	private Properties ps = new Properties();

	public Properties read()
	{
		InputStream is = null;
		try
		{
			is = new FileInputStream(new File("src/cn/mldn/homework/mvcOutputHelloWord/config.txt"));
			ps.load(is);
		} catch (IOException e)
		{
			e.printStackTrace();
		}
		return ps;
	}
}